// 页面reducers
import Actions from '../constants/actions.js'
const initialState = {
    title:'react demo',
    showHome:false,
    showShare:false,
    loading:false,
    loaded:false
};
function page(state=initialState,action){
    switch (action.type) {
        case Actions.SEND_REQUEST:
            return Object.assign({},state,action.body)
            break;
        case Actions.SET_TITLE:
            return Object.assign({},state,action.body)
            break;
        default:
            return state;
    }
}

export default page
